package org.wzl.service.controller;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wzl.service.vo.UserInfoVO;
import org.wzl.service.service.UserInfoService;
import org.wzl.service.utils.Resp;

/**
 * @author: 卫志龙
 * @date: 2024年06月29日 16:24
 */
@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserInfoService userInfoService;

    @GetMapping("/getUserInfo")
    public Resp<UserInfoVO> getUserInfo() {
        return Resp.ok(userInfoService.getUserInfo());
    }

}
